package com.fastCms.business.mall.pojo.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;
import java.util.List;

/**
 * 杭州人参大健康管理有限公司 版权所有 Copyright 2019<br>
 *
 * @Description: <br>
 * @Project: healthPro <br>
 * @CreateDate: Created in 2019年7月26日 下午2:54:08 <br>
 * @Author: < a href="jiahui.zhao@healthpro.vip">jiahui.zhao</ a>
 */
@Data
@ApiModel(value = "ProductKnowledgeRelEditPO 对象", description = "商品关联知识编辑对象")
public class ProductKnowledgeRelEditPO {

	@ApiModelProperty(value = "商品ID", example = "1")
	@NotBlank(message = "商品ID不能为空")
	private String productId;

	@ApiModelProperty(value = "知识ID列表", example = "['1']")
	@Size(max = 3,message = "关联知识数量超过限制")
	private List<String> knowledgeIds;

}
